<?php



class ReceiptsMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.openbravo.map.ReceiptsMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(ReceiptsPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(ReceiptsPeer::TABLE_NAME);
		$tMap->setPhpName('Receipts');
		$tMap->setClassname('Receipts');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ID', 'Id', 'VARCHAR', true, 255);

		$tMap->addForeignKey('MONEY', 'Money', 'VARCHAR', 'CLOSEDCASH', 'MONEY', true, 255);

		$tMap->addColumn('DATENEW', 'Datenew', 'TIMESTAMP', true, null);

		$tMap->addColumn('ATTRIBUTES', 'Attributes', 'BLOB', false, null);

	} 
} 